// DialogFindandReplace.cpp : implementation file
//

#include "stdafx.h"
#include "map863.h"
#include "DialogFindandReplace.h"


// CDialogFindandReplace dialog

IMPLEMENT_DYNAMIC(CDialogFindandReplace, CDialog)

CDialogFindandReplace::CDialogFindandReplace(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogFindandReplace::IDD, pParent)
	, m_IsNoReplace(false)
//	, m_pParent(NULL)
{

}

CDialogFindandReplace::~CDialogFindandReplace()
{
}

void CDialogFindandReplace::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_EDIT2, m_Edit2);
}


BEGIN_MESSAGE_MAP(CDialogFindandReplace, CDialog)
	ON_BN_CLICKED(IDOK, &CDialogFindandReplace::OnBnClickedOk)
END_MESSAGE_MAP()


// CDialogFindandReplace message handlers

void CDialogFindandReplace::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	OnOK();
}

BOOL CDialogFindandReplace::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO:  Add extra initialization here
	if (m_IsNoReplace)
	{
		m_Edit2.EnableWindow(false);
	}
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}

void CDialogFindandReplace::OnOK()
{
	// TODO: Add your specialized code here and/or call the base class

//	CDialog::OnOK();
}

void CDialogFindandReplace::OnCancel()
{
	// TODO: Add your specialized code here and/or call the base class

	SendMessage(WM_VIEW_ENDFIND, (WPARAM)this);
//	CDialog::OnCancel();
}
